<?php

class Login_model extends CI_Model{
	public function __construct()
	{
		parent::__construct();
	}
	public function get_gid()
	{
		$gid_list = $this->db->select('id_group,group')->get('group_pengguna')->result_object();
		$gids = array(
			'Developer'					=>  378,
			'Guest'						=>  0,
		);
		foreach ($gid_list as $gid) 
		{
			$gids[$gid->group] = $gid->id_group;
		}
		return $gids;
	}
}